home *** CD-ROM | disk | FTP | other *** search
- function navigationF(typeV)
- {
- var _loc1_ = this;
- if(typeV == "prev")
- {
- _loc1_.selectNumV = _loc1_.selectNumV - 1;
- if(_loc1_.selectNumV <= 1)
- {
- _loc1_.selectNumV = 1;
- }
- }
- else if(typeV == "next")
- {
- _loc1_.selectNumV = _loc1_.selectNumV + 1;
- if(_loc1_.selectNumV >= 5)
- {
- _loc1_.selectNumV = 5;
- }
- }
- if(_loc1_.selectNumV == 1)
- {
- _loc1_.btn_prev._alpha = 50;
- _loc1_.btn_next._alpha = 100;
- _loc1_.btn_prev.enabled = false;
- _loc1_.btn_next.enabled = true;
- }
- else if(_loc1_.selectNumV == 5)
- {
- _loc1_.btn_prev._alpha = 100;
- _loc1_.btn_next._alpha = 50;
- _loc1_.btn_prev.enabled = true;
- _loc1_.btn_next.enabled = false;
- }
- else
- {
- _loc1_.btn_prev._alpha = 100;
- _loc1_.btn_next._alpha = 100;
- _loc1_.btn_next.enabled = true;
- _loc1_.btn_prev.enabled = true;
- }
- _loc1_.subPageM.targetXPosV = (_loc1_.selectNumV - 1) * _loc1_.stepWV * -1;
- _loc1_.subPageM.onEnterFrame = function()
- {
- var _loc1_ = this;
- _loc1_._x += (_loc1_.targetXPosV - _loc1_._x) * 0.34;
- if(Math.abs(_loc1_.targetXPosV - _loc1_._x) <= 1)
- {
- _loc1_._x = _loc1_.targetXPosV;
- _loc1_.onEnterFrame = null;
- }
- };
- }
- stop();
- this.stepWV = 295;
- this.selectNumV = 1;
- this.btn_prev.onPress = function()
- {
- this._parent.navigationF("prev");
- };
- this.btn_next.onPress = function()
- {
- this._parent.navigationF("next");
- };
- this.btnM_startGame.onPress = function()
- {
- this._parent._parent.gotoAndPlay("onL");
- };
- this.navigationF("prev");
-